Skip to main content

Get File Permissions

AutomatR.GoogleDrive.Activities.GetFilePermissions

The "Get File Permissions" activity in AutomatR is part of the Google Drive activities package, facilitating the retrieval of permissions associated with a specific file in Google Drive. This activity streamlines the process of obtaining detailed information about who has access to a particular file and their corresponding roles.

Properties

NameDescription
Input
File NameSpecifies the name of the file for which you want to retrieve permissions. String variables containing the file name.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Get File Permissions" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Example: If the delay is 1000 milliseconds or 1 sec, i.e., 1.
Output
PermissionsOutputs the permissions associated with the specified file. The information includes the role and type of each permission. Variables of relevant types to store the permissions data.

How to use:

  1. Drag and drop the "Get File Permissions" activity onto the workflow.
  2. Configure the properties by specifying the file name for which you want to retrieve permissions.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to obtain detailed permissions information for the specified file in Google Drive.

Example: Consider an example where the "Get File Permissions" activity is used to retrieve permissions for a file named "Document.txt" in the user's Google Drive:

Get File Permissions:
Display Name: "Get Permissions for Document"
File Name: "Document.txt"
Permissions: filePermissions

In this example, the activity retrieves and outputs the permissions associated with the "Document.txt" file in the variable "filePermissions" for further handling in the workflow.